<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>睿企通</title>
<script src="js/jquery-1.9.1.min.js"></script>

<script src="js/jquery.mCustomScrollbar.concat.min.js"></script>
<link href="css/jquery.mCustomScrollbar.css" rel="stylesheet" type="text/css">

<link href="css/rb.css" rel="stylesheet" type="text/css">
<script src="js/rb.js"></script>
<script>
$(document).ready(function() {
	$(".rb_person_text span:first-child").text(RB.Sstrorage(false,'realName'));
	$(".rb_person_text span:last-child").click(function(e) {
		var close = confirm("确定退出？");
		if (close) {
			//退出
			loginout();
			setTimeout("window.parent.frames.location.href='index.html'",1000);			
	  	}
    });
	//左侧菜单启动滚动条
	$(".rb_mainmenu").mCustomScrollbar();
	//默认第一个菜单选中
	$(".rb_secondmenu ul li").first().css("background-color","#4dbd74");
	//监听菜单点击改变背景
	$(".rb_secondmenu ul li").click(function(){
		$(".rb_secondmenu ul li").each(function(){
			$(this).css("background-color","transparent");
        });
		$(this).css("background-color","#4dbd74");
	});
	
});
//异步请求注销
function loginout(){
	$.ajax({
		timeout:2000, 
		type: AJAXMETHOD,
		async: false,
		url: SERVER+"default/logout",
		dataType: AJAXJSON,
		jsonp: "callback",
		jsonpCallback:"callback",
		success: function(json){
			
		},
		error: function(){
		}
	});
}

//切换logo背景
function changeBgColor(val){
	$(".rb_logo").css("background-color", val);
	
}




</script>
<style>
a:visited{
	text-decoration:none;
	color:#fff;
}
a:hover{
	text-decoration:none;
	color:#fff;
}
a:active{
	text-decoration:none;
	color:#fff;
}
a:link{
	text-decoration:none;
	color:#fff;
}
.rb_person_text span:last-child:hover{
	cursor:alias;
}

</style>
</head>

<body>
    <div class="rb_leftmenu">
        <div class="rb_logo"></div>
        <div class="rb_mainmenu">
            <div class="rb_firstmenu" id="rb_firstmenu_1">
                <img src="assets/temp_icon_1.png">组织结构
            </div>
            <div class="rb_secondmenu" id="rb_secondmenu_1">
                <ul>
                    <a href="bmgl.html" target="rightFrame" onClick="changeBgColor('#6e8187');"><li><img src="assets/temp_icon_second.png">部门管理</li></a>
                    <a href="jsgl.html" target="rightFrame" onClick="changeBgColor('#6e8187');"><li><img src="assets/temp_icon_second.png">角色管理</li></a>
                    <a href="rygl.html" target="rightFrame" onClick="changeBgColor('#6e8187');"><li><img src="assets/temp_icon_second.png">人员管理</li></a>
                </ul>
            </div>
            <div class="rb_firstmenu" id="rb_firstmenu_2">
                <img src="assets/temp_icon_2.png">工作流程
            </div>
            <div class="rb_secondmenu" id="rb_secondmenu_2">
                <ul>
                    <a href="yygzl.html" target="rightFrame" onClick="changeBgColor('#ce203b');"><li><img src="assets/temp_icon_second.png">已有工作流</li></a>
                    <a href="xjgzl.html" target="rightFrame" onClick="changeBgColor('#ce203b');"><li><img src="assets/temp_icon_second.png">新建工作流</li></a>
                    <li><img src="assets/temp_icon_second.png">工作流商店</li>
                </ul>
            </div>
            <div class="rb_firstmenu" id="rb_firstmenu_3">
                <img src="assets/temp_icon_3.png">应用中心
            </div>
            <div class="rb_secondmenu" id="rb_secondmenu_3">
                <ul>
                    <a href="yyyy.html" target="rightFrame" onClick="changeBgColor('#f2638f');"><li><img src="assets/temp_icon_second.png">已有应用</li></a>
                    <a href="tjyy.html" target="rightFrame" onClick="changeBgColor('#f2638f');"><li><img src="assets/temp_icon_second.png">添加应用</li></a>
                    <li><img src="assets/temp_icon_second.png">应用商店</li>
                </ul>
            </div>
            <div class="rb_firstmenu" id="rb_firstmenu_4">
                <img src="assets/temp_icon_4.png">系统设置
            </div>
            <div class="rb_secondmenu" id="rb_secondmenu_4">
                <ul>
                    <li><img src="assets/temp_icon_second.png">在线用户</li>
                    <li><img src="assets/temp_icon_second.png">登录日志</li>
                </ul>
            </div>
        </div>
        <div class="rb_person">
        	<div class="rb_person_tx"></div>
            <div class="rb_person_text"><span></span> <span style="color:#F0F">退出</span></div>
        </div>
        
    </div>
</body>
</html>
